# Python (for和while)循环嵌套及用法
i = 0
while i < 10:
    for j in range(10):
        print("i =", i, " j =", j)
    i += 1
print()

i = 0
if i < 10:
    for j in range(5):
        print("i =", i, " j =", j)
